<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
    />
    <script>
      // function GetUserInfors() {
      // }
      // GetUserInfors();
    </script>
    <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
    <title><%= webpackConfig.name %></title>

    <style>
      .agentDiv {
        width: 100%;
        height: 500px;
        text-align: center;
        line-height: 500px;
        font-size: 26px;
        font-weight: bolder;
        color: red;
        display: none;
      }
    </style>
  </head>
  <body>
    <noscript>
      <strong
        >We're sorry but <%= webpackConfig.name %> doesn't work properly without
        JavaScript enabled. Please enable it to continue.</strong
      >
    </noscript>
    <div class="agentDiv" id="agenTxt">
      当前系统不支持IE以及内核是IE的浏览器，推荐使用谷歌(Chrome)浏览器
    </div>
    <div id="app"></div>
    <!-- built files will be auto injected -->
    <script type="text/javascript">
      //检测浏览器信息
      function getType() {
        //获取UserAgent属性
        var type = navigator.userAgent;
        if (type.indexOf("MSIE") > -1) {
          return "IE";
        } else if (type.indexOf("Firefox") > -1) {
          return "火狐";
        } else if (type.indexOf("Chrome") > -1) {
          return "谷歌";
        } else {
          return "其他";
        }
      }
      window.onload = function() {
        var type = getType();
        var types = ["火狐","谷歌"]
        if(!types.includes(type)){
          document.getElementById("agenTxt").style.display = "block";
          document.getElementById("app").style.display = "none";
        }
      };
    </script>
  </body>
</html>
